package com.bolang.onlycode.demo.designPatterns.command;

/**
 * 具体命令类
 */
public class ConcreteCommand implements Command{
    /**
     * 持有真正命令对象的引用
     */
     private  Receiver receiver;
     public ConcreteCommand(Receiver receiver){
         super();
         this.receiver = receiver;
     }
    @Override
    public void excute() {
     receiver.action();
    }
}
